﻿using System;

namespace bank
{
    class Program
    {
        static void Main(string[] args)
        {
            ATM aTM = new ATM();
            //事件注册
            aTM.BigMoneyFetched += new BigMoneyFetchedHandler(aTM.BigMoney);
            aTM[1] = "珞珈山人民银行";
            Console.WriteLine("目前取钱银行是：" + aTM[1]);
            Account creditAccount = new creditAccount("2021302171012", 1145,999999);
            for(int i=1;i<=5;i++)
            {
                aTM.getMoney(ref creditAccount,(float)Math.Pow(10,i));
            }
        }
    }
}
